<?php if (!empty($this->listing->rent_price) || !empty($this->listing->sale_price)):?>
<dl class="price">
	<?php 
	if (!empty($this->listing->rent_price)){
		echo '<span>'.number_format($this->listing->rent_price) . '<em>(租)</em></span>'; 
	}?> <?php if (!empty($this->listing->sale_price)){
		echo '<span>'.number_format($this->listing->sale_price) . '<em>(售)</em></span>'; 
	}?>
</dl>
<?php endif;?>


<?php $bedroom = Model_Listing_Residential::getBedroom();
if ($this->listing->bedroom > 0) {
    $bedrooms = ($bedroom[$this->listing->bedroom] > 1) ? $bedroom[$this->listing->bedroom] . ' bedrooms' : $bedroom[$this->listing->bedroom] . ' bedroom';
}
?>
<dl class="detail">
    <dd>
        <?php if (false && !empty($this->listing->area_l2)):?>
            <?php $distric_name = $this->listing->area_l2->name;?>
          	<a href="<?php echo Ac_Util::getCrossLink($this->listing->area_l2, 'area_l2');?>">
                <?php echo $distric_name?>
            </a>
        <?php endif;?>

        <?php 
        	$to_add     = '';
        	$to_add1     = '';
        	if (!empty($this->listing->street)){ 
		        echo trim($this->listing->street);
                $to_add     = ', ';
            }
            if (!empty($this->listing->bedroom)): ?>
                <?php echo $to_add?><a href="<?php echo Ac_Util::getCrossLink($this->listing->bedroom, 'bedroom');?>"><?php echo $bedrooms; ?></a>
                <?php 
        		$to_add1     = ', ';
        	endif; 
	        if (!empty($this->listing->size)):
		        echo $to_add1 . $this->t('__1__ sqft', null, number_format($this->listing->size));
	        endif;?>
     </dd>
</dl>

